package com.example.chinesenation.Service.Impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.chinesenation.Entity.BrowseRecord;
import com.example.chinesenation.Entity.BrowseRecordPolicy;
import com.example.chinesenation.Mapper.BrowseRecordPolicyMapper;
import com.example.chinesenation.Service.IBrowseRecordPolicyService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sakuraFallingDown
 * @since 2021-01-22
 */
@Service
public class BrowseRecordPolicyServiceImpl extends ServiceImpl<BrowseRecordPolicyMapper, BrowseRecordPolicy> implements IBrowseRecordPolicyService {

    @Override
    public boolean savaRecord(String uid, String id) {
        BrowseRecordPolicy browseRecordPolicy=new BrowseRecordPolicy();
        browseRecordPolicy.setPolicyId(id);
        browseRecordPolicy.setUid(uid);
        return save(browseRecordPolicy);
    }
}
